<template>
	<view class="content">
		<button @click="onShowMap" v-if="!showMap">显示地图</button>
		<bmapChooseLocatioin v-if="showMap" @cancel="onCancel" @confirm='onConfirm'></bmapChooseLocatioin>
	</view>
</template>

<script>
	import bmapChooseLocatioin from '../../components/bmap-chooselocation/index.vue'
	export default {
		components:{
			bmapChooseLocatioin
		},
		data() {
			return {
				title: 'Hello',
				showMap: false
			}
		},
		onLoad() {
		},
		methods: {
			onShowMap(){
				this.showMap = true
			},
			onConfirm(poi){
				console.log('onConfirm', poi)
			},
			onCancel(){
				console.log('onCancel')
			}
		}
	}
</script>

<style>

</style>
